home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.hypersurf.com
/
ftp.hypersurf.com.tar
/
ftp.hypersurf.com
/
pub
/
mac
/
ftp
/
Fetch_3.0.3.hqx
/
Fetch 3.0.3 Installer
/
FetchAE.h
< prev
next >
Wrap
Text File
|
1996-12-30
|
6KB
|
172 lines
/*
FetchAE.h -- sample Apple Event code for Fetch
Copyright ⌐ 1996, Trustees of Dartmouth College
All Rights Reserved.
Distribution and use of this code is hereby permitted, provided that any resulting
work includes the copyright statement above.
*/
#define FETCH_APP_SIGNATURE 'FTCh'
#define kAEFetchSuite 'FTCh'
#define kAEDownloadEvent 'Dnld'
#define kAEViewFileEvent 'VwFi'
#define kAEViewFileListEvent 'VwFL'
#define kAEPutIntoEvent 'PutI'
#define kAEFetchPutIntoItemsParam 'Itms'
#define kAEFetchPutIntoTextFormatParam 'TFmt'
#define kAEFetchPutIntoBinaryFormatParam 'BFmt'
#define kAESendFTPCommandEvent 'SndC'
#define kAEFetchSendFTPCommandsParam 'Cmds'
/* custom app properties (i.e. preferences) */
#define pWrapMargin 'pWrp'
#define pTextCreator 'pTCr'
#define pCacheTimeout 'pCTo'
#define pDecodeBinhex 'pBhx'
#define pDecodeMacbin1 'pMb1'
#define pDecodeMacbin2 'pMb2'
#define pDecodeAppleSingle 'pASg'
#define pDecodeMacHost 'pMHt'
#define pDecodeStuffit 'pSit'
#define pTickleServer 'pTkl'
#define pDownloadDir 'pDDr'
#define pUseDownloadFolder 'pUDF'
#define pDefaultPassword 'pDPw'
#define pDisplayMessages 'pMgs'
#define pUseTypeImage 'pTpI'
#define pOmitDotFiles 'pODF'
#define pDefaultTextFont 'pTFt'
#define pDefaultTextFontSize 'pTFS'
#define pDefaultTabWidth 'pTbW'
#define pDefaultBinaryType 'pBTp'
#define pDefaultBinaryCreator 'pBCr'
#define pTranslateISO 'pISO'
#define pShowSignonDialog 'pSSD'
#define pDefaultUploadTextFormat 'pUTF'
#define pDefaultUploadBinaryFormat 'pUBF'
#define pPassiveMode 'pPSV'
#define pMinimumDataPort 'pMnP'
#define pMaximumDataPort 'pMxP'
#define pUseSOCKSGateway 'pSks'
#define pSOCKSGatewayHost 'pSkH'
#define pSOCKSGatewayPort 'pSkP'
#define pUseProxyServer 'pPxy'
#define pProxyServer 'pPxS'
#define pDontProxyDomains 'pDPD'
#define pAutomaticDefaultToText 'pAuT'
#define pMaxCacheSize 'pMCS'
#define pOverwriteFiles 'pOvw'
#define pCaseSensitiveNames 'pCSN'
#define pDefaultBookmarkFont 'pDBF'
#define pDefaultBookmarkFontSize 'pDBS'
#define pAddTxtSuffixes 'pATS'
#define pAddHqxSuffixes 'pAHS'
#define pAddBinSuffixes 'pABS'
#define pEncodedNames 'pEcN'
#define pUseInternetConfig 'pUIC'
#define pAllowDuplicateConns 'pADC'
#define pInfoMacMirror 'pIMM'
#define pUMichMirror 'pUMM'
#define pAnarchieEmulation 'pAEm'
#define pDefaultShortcut 'pDSh'
#define pMysteryItemsAsFiles 'pMIF'
#define pDontUseOT 'pDUO'
#define pIgnoreCache 'pIgC'
#define pTxferBufferSize 'pTBS'
#define cTransferWindow 'cFWA'
#define cHelpWindow 'cFWB'
#define cTextWindow 'cFWC'
#define cBookmarkListWindow 'cFWD'
#define cShortcutWindow 'cFWE'
#define cTranscriptWindow 'cFWF'
#define cFirstFWindow cTransferWindow
#define cLastFWindow cTranscriptWindow
#define pTransferMode 'pTxM' /* cTransferWindow properties */
#define pViewOrder 'pVOr'
#define pHostName 'pHNm'
#define pUserID 'pUid'
#define pPassword 'pPwd'
#define pStartDir 'pSDr'
#define pWorkDir 'pWDr'
#define pStatus 'pSta'
#define pCurrentItem 'pCrI'
#define pApproxSize 'pASz'
#define pBytesTransfered 'pBTx'
#define pElapsedTime 'pElT'
#define pTransferFormat 'pTFm'
#define pParentDir 'pPDr'
#define pText 'pTxt' /* cTextWindow, cTranscriptWindow, cHelpWindow properties */
//#define pViewOrder 'pVOr' /* cBookmarkList, cShortcutWindow properties */
#define pFileSpec 'pFSp'
//#define pIsModified 'imod'
#define kTransferModeEnumeration 'TxMd' /* pTransferMode enumeration */
#define kTransferAutomatic 'tAut'
#define kTransferBinary 'tBin'
#define kTransferText 'tTxt'
#define cHostItem 'cFHA'
#define cHostFile 'cFHB'
#define cHostDirectory 'cFHC'
#define cURL 'cFHD'
#define kFileFormatEnumeration 'FFmt' /* pDefaultUploadTextFormat, pDefaultUploadBinaryFormat, */
#define eUnknownFileFormat 'Unkn' /* pTransferFormat, kAEFetchPutIntoTextFormatParam, */
#define eTextFileFormat 'Text' /* kAEFetchPutIntoBinaryFormatParam enumeration */
#define eWrappedTextFileFormat 'WTxt'
#define eRawDataFileFormat 'RawD'
#define eBinHexFileFormat 'BHex'
#define eMacBinary1FileFormat 'MBn1'
#define eMacBinary2FileFormat 'MBn2'
#define eAppleSingleFileFormat 'ApSg'
#define eMacHostFileFormat 'MHst'
#define cFirstHostItemClass cHostItem
#define cLastHostItemClass cURL
#define pHostItemType 'pTyp' /* cHostItem, cHostFile, cHostDirectory properties */
//#define pName 'pnam'
#define pURL 'pURL'
#define pSize 'pSiz'
#define pModDate 'pMod'
#define kHostItemTypeEnumeration 'HtTp' /* pHostItemType enumeration */
#define kHostItemFile 'hFil'
#define kHostItemDirectory 'hDir'
#define kHostItemLink 'hLnk'
#define kHostItemUnknown 'hUnk'
#define cBookmark 'cBmk'
//#define pHostItemType 'pTyp' /* cBookmark properties */
//#define pName 'pnam'
#define pURL 'pURL'
#define pHostName 'pHNm'
#define pUserID 'pUid'
#define pPassword 'pPwd'
#define pPath 'pPth'
#define pSize 'pSiz'
#define pModDate 'pMod'
extern OSErr FetchOpenURL(char *url, AEIdleUPP idleUPP);
extern OSErr FetchPut(FSSpec *fspec, char *url, AEIdleUPP idleUPP);
extern OSErr FetchGet(char *url, FSSpec *fspec, AEIdleUPP idleUPP);
extern OSErr FetchViewFile(char *url, AEIdleUPP idleUPP);
extern OSErr FetchItemExists(char *fname, Boolean *exists, AEIdleUPP idleUPP);
extern OSErr FetchRenameItem(char *oldname, char *newname, AEIdleUPP idleUPP);
extern OSErr FetchCreateDirectory(char *dirname, AEIdleUPP idleUPP);
extern OSErr FetchSendCommand(char *cmd, char *url, AEIdleUPP idleUPP);
extern OSErr FetchGetPreference(DescType propCode, AEDesc *valueDesc, AEIdleUPP idleUPP);
extern OSErr FetchSetPreference(DescType propCode, AEDesc *valueDesc, AEIdleUPP idleUPP);